/*
 * @Author: cooper
 * @Date: 2025-04-01 00:15:27
 * @Wechat: cmd_develop
 * @Description:
 */
#include "utils.h"
#include <stdlib.h>
#include <string.h>

// 重启设备
void REBOOT(void)
{
    NVIC_SystemReset();
    for (;;)
    {
    }
}

SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC), REBOOT, REBOOT, REBOOT); // 重启
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN), ARM_SEND, ARM_SEND, ARM_SEND);
